function  model  = TrainSVM(path)
%Train SMO with kernel
%  Load arrf file specified by path and train SVM classifier with below
%  parameters
%  C 1.0
%  L 0.001
%  P 1.0E-12
%  N 0
%  V 1
%  W 1
%  K "weka.classifieres.functions.supportVector.PolyKernel -C 250007 -E
%  1.0"

%load specified arff file
wekaData = loadARFF(path);

%Train SVM classifier with Poly kernel
model = trainWekaClassifier(wekaData,'functions.SMO','-C 1.0 -L 0.001 -P 1.0E-12 -N 0 -V -1 -W 1 -K "weka.classifiers.functions.supportVector.PolyKernel -C 250007 -E 1.0"');

end

